public MainWindowSimple(String username, String password) { InitializeComponent(); //Set the main controller _mc = new MainController(username, password); //DataContext = _mc; Setup(); }
public MainWindowSimple() { InitializeComponent(); //Set the main controller _mc = new MainController(); //DataContext = _mc; Setup(); }
public MainWindow() { InitializeComponent(); //Initialize web components //var buttonuri = new Uri("file://" + Environment.CurrentDirectory + "/gui/button_backup.html"); //Console.WriteLine(buttonuri); //wbtnBackup.Source = buttonuri; // initialise code here Stream iconStream = System.Windows.Application.GetResourceStream(new Uri("pack://*****:*****@"The app has been minimised. Click the tray icon to show.", BalloonTipTitle = @"SaveSync", Text = @"SaveSync", Icon = new System.Drawing.Icon( iconStream ) }; m_notifyIcon.Click += new EventHandler(m_notifyIcon_Click); mc = new MainController(); }