private void ButtonClick_OpenProject(object sender, RoutedEventArgs e) { Project MProject = (sender as Button).DataContext as Project; MProject = Projects.Where(p => p.Uid == MProject.Uid).FirstOrDefault(); var EditorWindow = new EditorMainMenuWindow(_MainMenuWindow, MProject); EditorWindow.Show(); }
public EditorHistoryRequestsControl(EditorMainMenuWindow _EditorMainMenuWindow) { InitializeComponent(); WindowsRegister(_EditorMainMenuWindow); NetworkActions(); WebRequestsHistory = new ObservableCollection <WebRequestHistory>(); DataGrid_History.ItemsSource = WebRequestsHistory; Sender.SendToServer("RequestsHistory.GetAll", ProjectData.SelectedProject.Id); }
//public BoundModel TabCollecton; public EditorWebRequestPage(EditorMainMenuWindow _EditorMainMenuWindow) { InitializeComponent(); //TabCollecton = new BoundModel(); ProjectData.TabCollecton = new BoundModel(); DataContext = ProjectData.TabCollecton; ProjectData.TabCollecton.Items.Add(BoundNewItem.AddTab()); this._EditorMainMenuWindow = _EditorMainMenuWindow; TabControl_Requests.SelectionChanged += TabControl_Requests_SelectionChanged; }
public EditorProjectChatPage(EditorMainMenuWindow _EditorMainMenuWindow) { InitializeComponent(); this._EditorMainMenuWindow = _EditorMainMenuWindow; ListView_Chat.ItemsSource = Messages; if (!Sender.SendToServer("Chat.Messages.GetAll", ProjectData.SelectedProject.Id)) { new AlertWindow("Ошибка!", AlertWindow.AlertCode.SendToServer); } this.Button_Send.Click += Button_Send_Click; this.TextBox_Message.KeyDown += TextBox_Message_KeyDown; }
private void WindowsRegister(EditorMainMenuWindow _EditorMainMenuWindow) { this._EditorMainMenuWindow = _EditorMainMenuWindow; }