Ignore:
Timestamp:
Sep 2, 2010, 10:06:52 AM (11 years ago)
Author:
matkovic
Message:

-Fullscreen enhanced
-TextInput added
-Picture scaling added
-Textinput scaling added
-Textinput format command added
-Several style changes
-Progressbar redesigned
-Last log message now appearing
-IControlContainer commenced
-Several icons added
-Plugin state now stored and loaded
-Plugin height and width now storing and loading
-Several misc changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/CrypPlugins/WorkspaceManager/View/VisualComponents/BottomBox.xaml.cs

    r1837 r1892  
    1616namespace WorkspaceManager.View.VisualComponents
    1717{
    18     public class ImageSelectedEventArgs : EventArgs
    19     {
    20         public Uri uri;
    21     }
    22 
    2318    /// <summary>
    2419    /// Interaktionslogik für Settings.xaml
     
    2722    {
    2823        public event EventHandler<ImageSelectedEventArgs> ImageSelected;
     24        public event EventHandler<AddTextEventArgs> AddText;
    2925
    3026        public BottomBox()
     
    5551        private void Button_Click(object sender, RoutedEventArgs e)
    5652        {
    57             System.Windows.Forms.OpenFileDialog diag = new System.Windows.Forms.OpenFileDialog();
    58             if (diag.ShowDialog() == System.Windows.Forms.DialogResult.OK)
     53            Button btn = sender as Button;
     54            if (btn.Name == "ADDIMG")
    5955            {
    60                 Uri uriLocal = new Uri(diag.FileName);
     56                System.Windows.Forms.OpenFileDialog diag = new System.Windows.Forms.OpenFileDialog();
     57                if (diag.ShowDialog() == System.Windows.Forms.DialogResult.OK)
     58                {
     59                    Uri uriLocal = new Uri(diag.FileName);
    6160
    62                 if (ImageSelected != null)
    63                     ImageSelected.Invoke(this, new ImageSelectedEventArgs() { uri = uriLocal });
     61                    if (ImageSelected != null)
     62                        ImageSelected.Invoke(this, new ImageSelectedEventArgs() { uri = uriLocal });
     63                }
     64                return;
     65            }
     66
     67            if (btn.Name == "ADDTXT")
     68            {
     69                if (AddText != null)
     70                    AddText.Invoke(this, new AddTextEventArgs());
    6471            }
    6572        }
    6673    }
     74
     75    public class ImageSelectedEventArgs : EventArgs
     76    {
     77        public Uri uri;
     78    }
     79
     80    public class AddTextEventArgs : EventArgs
     81    {
     82    }
     83
    6784}
Note: See TracChangeset for help on using the changeset viewer.