コード例 #1
0
        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();
        }
コード例 #2
0
        public EditorHistoryRequestsControl(EditorMainMenuWindow _EditorMainMenuWindow)
        {
            InitializeComponent();
            WindowsRegister(_EditorMainMenuWindow);
            NetworkActions();

            WebRequestsHistory = new ObservableCollection <WebRequestHistory>();

            DataGrid_History.ItemsSource = WebRequestsHistory;

            Sender.SendToServer("RequestsHistory.GetAll", ProjectData.SelectedProject.Id);
        }
コード例 #3
0
        //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;
        }
コード例 #4
0
        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;
        }
コード例 #5
0
 private void WindowsRegister(EditorMainMenuWindow _EditorMainMenuWindow)
 {
     this._EditorMainMenuWindow = _EditorMainMenuWindow;
 }