コード例 #1
0
        void AddClick(object sender, RoutedEventArgs e)
        {
            var result = EditDatabaseConnectDialog.Run(Owner, new DBConnectInfo());

            if (result != null)
            {
                DBConnectInfos.Add(result);
            }
        }
コード例 #2
0
        public static DBConnectInfo Run(Window parent, DBConnectInfo dbConnectInfo)
        {
            var dialog = new EditDatabaseConnectDialog(dbConnectInfo)
            {
                Owner = parent
            };

            return(dialog.ShowDialog() ? dialog.GetResult() : null);
        }
コード例 #3
0
        void EditClick(object sender, RoutedEventArgs e)
        {
            if (DBConnectInfo == null)
            {
                return;
            }

            var result = EditDatabaseConnectDialog.Run(Owner, DBConnectInfo);

            if (result != null)
            {
                DBConnectInfos[DBConnectInfos.IndexOf(DBConnectInfo)] = result;
            }
        }
コード例 #4
0
        void CopyClick(object sender, RoutedEventArgs e)
        {
            if (DBConnectInfo == null)
            {
                return;
            }

            var result = EditDatabaseConnectDialog.Run(Owner, DBConnectInfo);

            if (result != null)
            {
                DBConnectInfos.Add(result);
            }
        }